multiple routes same controller laravel

30

$router->get('/{home?}', 'SiteController@home')
       ->where('home', '(home|another_home_route)')
       ->name('home');

Comments

Submit
0 Comments